import request from '@/utils/request'

export function createItem(form) {
  return request({
    url: '/api/item/add',
    method: 'post',
    data: form
  })
}
export function getList(_search, _pageNum, _pageSize) {
  return request({
    url: '/api/item/list',
    method: 'post',
    data: {
      pageNum: _pageNum,
      pageSize: _pageSize,
      searchTitle: _search
    }
  })
}
